package com.scau.dao.Impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

import com.scau.dao.SectionDao;
import com.scau.mapper.SectionMapper;
import com.scau.pojo.Section;
import com.scau.util.SqlSessionFactoryUtil;

@Repository
public class SectionDaoImpl implements SectionDao{
	
	SqlSession session = SqlSessionFactoryUtil.getSession();
	SectionMapper sectionMapper=session.getMapper(SectionMapper.class);
	@Override
	public List<Section> query() {
		return sectionMapper.getSection();
	}
	
}
